<template>
  <div class="dashboard-container">
    <h1>欢迎使用溯源系统管理平台</h1>
    <p>请从左侧菜单选择要操作的功能</p>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { useCounterStore } from '@/stores/counter';

const pinia = useCounterStore();

// 当前登录用户信息
const currentUser = ref({
  username: pinia.UserInfo.UserName,
  nickname: pinia.UserInfo.RealName,
});
</script>

<style scoped>
.dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

h1 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #303133;
}

p {
  font-size: 16px;
  color: #909399;
}
</style>